/* General Body and Fonts */
body {
    background-color: #f8f9fa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #495057;
    margin: 0;
}

/* Main Admin Layout */
.admin-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styling */
.admin-sidebar {
    width: 240px;
    background: #2D5B3E; /* Main Green Color */
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
}

.admin-sidebar h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    text-align: center;
    padding: 24px 0;
    margin: 0;
    background: rgba(0,0,0,0.2);
}

.admin-menu {
    list-style: none;
    padding: 16px 0;
    margin: 0;
    flex-grow: 1;
}

.admin-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #cbd5e1;
    padding: 14px 24px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    border-left: 3px solid transparent;
}

.admin-menu a:hover {
    background: #254d35; /* Darker Green on hover */
    color: #fff;
    border-left-color: #55a676; /* Lighter Green for border */
}

.admin-menu a.active {
    background: #55a676; /* Lighter Green for active state */
    color: #fff;
    font-weight: 500;
}

.admin-menu a .fa {
    width: 20px;
    font-size: 16px;
    text-align: center;
}

/* Content Area */
.admin-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin-bottom: 24px;
}

.admin-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #2D5B3E; /* Main Green Color */
}

/* Section cards */
#routes-manage-section,
#culture-manage-section {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

#routes-manage-section h2,
#culture-manage-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2D5B3E; /* Main Green Color */
    margin-top: 0;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

/* Filter Group Styling */
.filter-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #fff;
    color: #475569;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.filter-btn:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
}

.filter-btn.active {
    background-color: #2D5B3E; /* Main Green Color */
    color: #fff;
    border-color: #2D5B3E;
}

/* Table Styling */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.admin-table th,
.admin-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

.admin-table thead th {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    background-color: #f8f9fa;
    border-bottom-width: 2px;
}

.admin-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Button Styling */
.btn-add-route {
    background-color: #2D5B3E; /* Main Green Color */
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px; /* Space between icon and text */
}

.btn-add-route:hover {
    background-color: #254d35; /* Darker Green on hover */
}

.btn-edit,
.btn-delete {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px; /* Larger icon */
    padding: 6px;
    margin: 0 4px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    line-height: 1;
    color: #64748b;
    transition: all 0.2s;
}

.btn-edit:hover {
    background-color: #d1e7dd; /* Lighter Green background */
    color: #254d35; /* Darker Green text */
}

.btn-delete:hover {
    background-color: #fee2e2; /* Light red */
    color: #dc2626;
}

/* Pagination Styling */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 24px;
    gap: 8px;
}

.page-btn {
    border: 1px solid #e2e8f0;
    background-color: #fff;
    color: #475569;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.page-btn:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
}

.page-btn.active {
    background-color: #2D5B3E; /* Main Green Color */
    border-color: #2D5B3E; /* Main Green Color */
    color: #fff;
    font-weight: 600;
}

/* Logout Button Styling */
.btn-logout {
    background-color: #f44336;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.btn-logout:hover {
    background-color: #d32f2f;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: #000;
}

/* Form Group in Modal */
.modal-content h2 {
    margin-top: 0;
    margin-bottom: 24px;
    color: #2D5B3E;
}

.modal-content .form-group {
    margin-bottom: 20px;
}

.modal-content .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #495057;
}

.modal-content .form-group input[type="text"],
.modal-content .form-group input[type="date"],
.modal-content .form-group input[type="number"],
.modal-content .form-group input[type="tel"],
.modal-content .form-group input[type="email"],
.modal-content .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.modal-content .form-group input:focus,
.modal-content .form-group select:focus {
    outline: none;
    border-color: #2D5B3E;
    box-shadow: 0 0 0 2px rgba(45, 91, 62, 0.2);
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background-color: #2D5B3E;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-submit:hover {
    background-color: #254d35; /* Darker Green on hover */
}

/* 欢迎模态框特定样式 */
#welcome-modal .modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

#welcome-modal .modal-content h2 {
    background: linear-gradient(135deg, #2D5B3E 0%, #55a676 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.8rem;
    font-weight: 700;
}

#welcome-modal .modal-content .fa {
    transition: transform 0.3s ease;
}

#welcome-modal .modal-content .fa:hover {
    transform: scale(1.1);
}

#welcome-modal .modal-content > div:first-of-type {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f9f0 100%);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

#welcome-modal .modal-content > div:nth-of-type(2) > div {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

#welcome-modal .modal-content > div:nth-of-type(2) > div:hover {
    transform: translateY(-2px);
    border-color: #2D5B3E;
    box-shadow: 0 4px 12px rgba(45, 91, 62, 0.15);
}

#welcome-modal .btn-submit {
    background: linear-gradient(135deg, #2D5B3E 0%, #55a676 100%);
    border: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

#welcome-modal .btn-submit:hover {
    background: linear-gradient(135deg, #254d35 0%, #4a8f5f 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45, 91, 62, 0.3);
} 